package com.kyub.spring.gears.model;

import java.util.List;

/**

 */
public class RelationPropertyDescriptor implements PropertyDescriptor {

      private String name;

      private PojoDescriptor pojoDescr;

       private String  allowedRoles= "ROLE_ANONYMOUS";

    public String getName() {
            return name;
        }

        public void setName(String name) {

            this.name = name;
        }

    public PojoDescriptor getPojoDescr() {
        return pojoDescr;
    }

    public void setPojoDescr(PojoDescriptor pojoDescr) {
        this.pojoDescr = pojoDescr;
    }

    public String getAllowedRoles() {
        return allowedRoles;
    }

    public void setAllowedRoles(String allowedRoles) {
        this.allowedRoles = allowedRoles;
    }

    public String toString() {

            return this.hashCode()+ " "+this.name;
        }

}
